package encrypt

import (
	"encoding/hex"

	"github.com/tjfoc/gmsm/sm3"
)

func Sm3(data string) string {
	h := sm3.New()
	h.Write([]byte(data))
	sum := h.Sum(nil)
	return hex.EncodeToString(sum)
}
